<template>
	<view class="zxc_centent">
			<view class="u-content">
				<u-parse :content="content" :selectable="true"></u-parse>
			</view>
	</view>
</template>

<script>
	export default{
		data (){
			return{
				content: `
									<p>露从今夜白，月是故乡明</p>
									<img src="https://cdn.uviewui.com/uview/swiper/2.jpg" />
								`,
				type:''
			}
		},
		onLoad(opation){
			console.log(opation)
			//type =0 解约协议  1用户协议 2隐私政策 3注销协议
			this.type=opation.type
			if(this.type ==0){
				uni.setNavigationBarTitle({
					title: '解约协议'
				});
			}
			if(this.type ==1){
				uni.setNavigationBarTitle({
					title: '用户协议'
				});
			}
			if(this.type ==2){
				uni.setNavigationBarTitle({
					title: '隐私政策'
				});
			}
			if(this.type ==3){
				uni.setNavigationBarTitle({
					title: '注销协议'
				});
			}
		}
	}
</script>

<style>
 .u-content {
        padding: 24rpx;
    }
	
</style>